<%@ page language="java" contentType="text/html;charset=UTF-8" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack"%>

<chiptrack:checkLogon sourcePage="projectSetup.do"/>
<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
                 com.scalar.forecast.commons.Constants"%>
<%@ page import="com.scalar.chiptrack.users.User"%>
<%@ page import="com.scalar.chiptrack.users.Functionality"%>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>
<% User user1 = (com.scalar.chiptrack.users.User) session.getAttribute (com.scalar.chiptrack.commons.SessionKeys.USER_KEY); %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel=stylesheet>
<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js">
</script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/validations.js">
</script>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" onload='disableFields();'>

<SCRIPT language="JavaScript">
    var defaultStr = "";
    var errors1 = "";
    var m = "";
    var dateElement = "";
	function sendOptionElementLeftToRight ( list1, list2, formName )
	{
		with ( formName.elements )
		{
			if ( list_copySelected ( list1, list2, defaultStr ) > 0 )
			{
				list_deleteSelected ( list1, defaultStr );
			}
		}
	}

	function sendOptionElementRightToLeft ( list1, list2, formName )
	{
		with ( formName.elements )
		{
			if ( list_copySelected ( list2, list1, defaultStr ) > 0 )
			{
				list_deleteSelected ( list2, defaultStr );
			}
		}
	}

	function list_copySelected(list1, list2, defaultStr)
	{
		if ( list1 == null || list2 == null ){
			return -1;
		}
		else if ( list1.length == 1 && list1.options[0].selected && list1.options[0].text == defaultStr){
			return -2;
		}

		var copyCount = 0;

		// unselect all in list2 first (IE5 bug)
		for (var i = 0; i < list2.length; i++ ){
			list2.options[i].selected = false;
		}

		// copy the selected items from list1 to list2
		for (var i = 0; i < list1.length; i++ ){
			if ( list1.options[i].selected ){
				list2.options[list2.length] = new Option(list1.options[i].text, list1.options[i].value);
				copyCount++;
			}
		}

		// remove the default str from list2 if neccesary
		if ( list2.length > 1 && list2.options[0].text == defaultStr ){
			list2.options[0] = null;
		}

		return copyCount;
	}

	function list_deleteSelected(list1, defaultStr)
	{
		// assertions
		if ( list1 == null ){
			return -1;
		}
		else if ( list1.length == 1 && list1.options[0].selected && list1.options[0].text == defaultStr){
			return -2;
		}

		// copy the selected items from list1 to the array
		// use trick with array because of IE5 bug
		var deleteCount = 0;
		var sel = new Array(list1.length);

		for (var i = 0; i < list1.length; i++ ){
			if ( list1.options[i].selected ){
				list1.options[i].selected = false;
				sel[deleteCount++] = i;
			}
		}

		for (var i = deleteCount - 1; i > -1 ; i-- ){
			list1.options[sel[i]] = null;
		}

		if ( list1.length == 0 ) {
			list1.options[0] = new Option(defaultStr, defaultStr);
        }

		return deleteCount;
	}

    function userDefinedFields()
    {
        var projectId = document.projectSetupForm['projectSetup.projectID'].value;
        newWindow = window.open ('userDefinedFieldsForPojectSetup.do?action=modify&projectId='+projectId,'optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=yes,scrollbars=yes,width=550,height=370,resizable=no,left=325,top=250');
        newWindow.focus();
    }
    function mapPartNumbers()
    {
        var projectId = document.projectSetupForm['projectSetup.projectID'].value;
        newWindow = window.open ('mapPartNumbers.do?action=show&projectID='+projectId,'optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=yes,scrollbars=yes,width=550,height=400,resizable=no,left=325,top=250');
        newWindow.focus();
    }
    function enableFields()
    {
        var availableChips  = document.projectSetupForm['projectSetup.availableChips'];
        var availableBoards = document.projectSetupForm['projectSetup.availableBoards'];
        var availableKits   = document.projectSetupForm['projectSetup.availableKits'];

        var selectedChips  = document.projectSetupForm['projectSetup.selectedChips'];
        var selectedBoards = document.projectSetupForm['projectSetup.selectedBoards'];
        var selectedKits   = document.projectSetupForm['projectSetup.selectedKits'];

        for ( var i = 0; i < availableChips.length; i++ )
        {
            availableChips.options[i].selected = true;
        }
        for ( var i = 0; i < availableBoards.length; i++ )
        {
            availableBoards.options[i].selected = true;
        }
        for ( var i = 0; i < availableKits.length; i++ )
        {
            availableKits.options[i].selected = true;
        }
        if ( selectedChips.length == 0 )
        {
            selectedChips.options[0] = new Option(defaultStr, defaultStr);
        }
        if ( selectedBoards.length == 0 )
        {
            selectedBoards.options[0] = new Option(defaultStr, defaultStr);
        }
        if ( selectedKits.length == 0 )
        {
            selectedKits.options[0] = new Option(defaultStr, defaultStr);
        }
        for ( var i = 0; i < selectedChips.length; i++ )
        {
            selectedChips.options[i].selected = true;
        }
        for ( var i = 0; i < selectedBoards.length; i++ )
        {
            selectedBoards.options[i].selected = true;
        }
        for ( var i = 0; i < selectedKits.length; i++ )
        {
            selectedKits.options[i].selected = true;
        }
    }
    function disableFields()
    {
        var availableChips  = document.projectSetupForm['projectSetup.availableChips'];
        var availableBoards = document.projectSetupForm['projectSetup.availableBoards'];
        var availableKits   = document.projectSetupForm['projectSetup.availableKits'];

        var selectedChips  = document.projectSetupForm['projectSetup.selectedChips'];
        var selectedBoards = document.projectSetupForm['projectSetup.selectedBoards'];
        var selectedKits   = document.projectSetupForm['projectSetup.selectedKits'];

        for ( var i = 0; i < availableChips.length; i++ )
        {
            availableChips.options[i].selected = false;
        }
        for ( var i = 0; i < availableBoards.length; i++ )
        {
            availableBoards.options[i].selected = false;
        }
        for ( var i = 0; i < availableKits.length; i++ )
        {
            availableKits.options[i].selected = false;
        }

        for ( var i = 0; i < selectedChips.length; i++ )
        {
            selectedChips.options[i].selected = false;
        }
        for ( var i = 0; i < selectedBoards.length; i++ )
        {
            selectedBoards.options[i].selected = false;
        }
        for ( var i = 0; i < selectedKits.length; i++ )
        {
            selectedKits.options[i].selected = false;
        }
    }

    function openCalendar(dateValue)
    {
        dateElement = dateValue;

        newWindow = window.open('<%=chipTracContext%>/jsp/includes/calendar.html','calenderPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=180,height=440,resizable=no');
        newWindow.moveTo(550,180);
        newWindow.focus();
    }
    function assignDate( passedValue )
    {
        dateElement.value = passedValue;
        window.focus();
    }

    function submitPage( action )
    {
        errors1 ="";
        if ( action == 'SAVE') {
            var type;
            var selectedChipsLength;
            var selectedBoardsLength;
            var selectedKitsLength;
            var selectedChips  = document.projectSetupForm['projectSetup.selectedChips'];
            var selectedBoards = document.projectSetupForm['projectSetup.selectedBoards'];
            var selectedKits   = document.projectSetupForm['projectSetup.selectedKits'];

            if ( document.projectSetupForm['projectSetup.salesPersonID'].value == "0" )
            {
                errors1 = "<li> Please select Sales Person Name"
            }
            if ( document.projectSetupForm['projectSetup.customerID'].value == "0" )
            {
                errors1 = errors1+"<li> Please select Customer Name"
            }
            if ( trim(document.projectSetupForm['projectSetup.projectName'].value) == "" )
            {
                errors1 = errors1+"<br><li> Please enter Project Name"
            }
            for ( var i = 0; i < m ; i++ )
            {
                type = document.projectSetupForm['projectSetup.userDefinedFeilds['+i+'].type'];

                if ( type != null && type.value == "date")
                {
                    date = document.projectSetupForm['projectSetup.userDefinedFeilds['+i+'].value'];
                    label = document.projectSetupForm['projectSetup.userDefinedFeilds['+i+'].name'];
                    if( date.value != '' && !validateBookingDate( date.value ) )
                    {
                        errors1 = errors1+"<br><li>"+label.value+" should be in 'mm/dd/yyyy' format ";
                        date.select();
                        date.focus();
                    }
                }
            }
            selectedChipsLength = selectedChips.length;
            if ( selectedChips.length == 1 && (selectedChips.options[0].value).trim() == ""   ) {
                selectedChipsLength = 0;
            }
            selectedBoardsLength = selectedBoards.length;
            if ( selectedBoards.length == 1 && (selectedBoards.options[0].value).trim() == "" ) {
                selectedBoardsLength = 0;
            }
            selectedKitsLength = selectedKits.length;
            if ( selectedKits.length == 1 && (selectedKits.options[0].value).trim() == "" ) {
                selectedKitsLength = 0;
            }

            if( selectedChipsLength + selectedBoardsLength + selectedKitsLength < 1 ) {
                errors1 = errors1+"<br><li> Please select atleast one part number"
            }
        }

        if ( errors1 == '' )
        {
            document.projectSetupForm.action.value = action;
            enableFields();
            document.projectSetupForm.submit();
        }
        else
        {
            var pa = document.getElementById("error");
            pa.innerHTML = errors1;
        }
    }
    function resetForm()
    {
        document.projectSetupForm.reset();
        disableFields();
    }


</SCRIPT>

<!-- Top Header Start-->
    <%
        String userTypeChiptrac = com.scalar.chiptrack.commons.Constants.USER_TYPE_CHIPTRAC + "";
    %>
    <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/header.jsp" %>
    </logic:equal>
    <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/extHeader.jsp" %>
    </logic:notEqual>
 <!-- Top Header End-->
<html:form name="projectSetupForm" method="post" action="/projectSetup.do" scope="session" type="com.scalar.forecast.projectSetup.forms.ProjectSetupForm" >

<TABLE cellSpacing=0 cellPadding=0 width="100%" border="0">
  <TBODY>
  <TR>
	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>
<!-- Side Navigation start -->
	<logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/marketing/marketing_menu.jsp" %>
    </logic:equal>
    <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/forecast/external_forecast_menu.jsp" %>
    </logic:notEqual>
    </TD>
<!-- end of the side navigations -->
    <TD bgcolor="#ffffff">
        <IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
        <TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
        <TD valign="top" width="100%">

        <IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
        <BR>
<!-- from here your body starts -->
        <center><span class="NArialW">Project Setup</span></center>
        <nested:nest property="projectSetup">
        <TABLE cellSpacing=0 cellPadding=0 width="90%" align=left border="0">
            <TBODY>
            <TR>
            <td with="20%">&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <TD align="right">
              <TABLE cellSpacing=0 cellPadding=2 width="92%" align=center border="0">
                <TBODY>
                <TR><TD colspan =4 class="NArialL"><chiptrack:errors styleClass="NArialL" /><chiptrack:info styleClass="NArialL" /></TD></TR>
                <TR><TD colspan =4 align="left" class='NArialL'><font styleClass="NArialL" id="error" color="FF0000"  />&nbsp;</font></TD></TR>
                <% if ( !user1.isActionAllowed ( Functionality.PROJECT_SETUP,User.USER_ACTION_MODIFY ) ) { %>
                    <tr><td colspan=4 align='left'><font class='NArialS'><font color='blue'><b><%=Constants.NO_MODIFY_RIGHTS %></b></font></td></tr> <% } %>
                <TR><TD colspan =4 class="NArialL">&nbsp;</TD></TR>
                <TR>
                  <TD width="20%"><FONT class=NArialL>Sales Person Name:<FONT color="red">&nbsp;*</FONT></FONT></TD>
                  <TD width="30%"><nested:select name="projectSetup" property="salesPersonID" styleClass="txfield" >
                                   <html:option value="0">---Select Sales Person---</html:option>
                                   <html:options collection="salesPersons" property="value" labelProperty="label"/>
                                  </nested:select></TD>
                  <TD width="20%">&nbsp;</TD>
                  <TD width="30%">&nbsp;</TD>
                </TR>
                <TR>
                  <TD width="20%" nowrap>
                        <FONT class=NArialL>Customer Name:<FONT color="red">&nbsp;*</FONT></FONT>
                  </TD>
                  <TD width="30%">
                       <nested:select name="projectSetup" property="customerID" styleClass="txfield"  onchange="javascript:submitPage('loadOdms')">
                           <html:option value="0">---Select Customer---</html:option>
                           <html:options collection="customers" property="value" labelProperty="label"/>
                       </nested:select>
                  </TD>
                  <TD width="20%">&nbsp;<FONT class=NArialL><bean:message key="label.sales.endCustomer"/>:</FONT></TD>
                  <TD width="30%">
                        <nested:select name="projectSetup" property="odmID" styleClass="txfield" >
                           <html:option value="0">---Select <bean:message key="label.sales.endCustomer"/>---</html:option>
                           <html:options collection="odmsList" property="value" labelProperty="label"/>
                        </nested:select>
                  </TD>
                </TR>
                <TR>
                  <TD width="20%" nowrap>
                        <FONT class=NArialL><bean:message key="label.sales.endUser"/>:</FONT>
                  </TD>
                  <TD width="30%">
                       <nested:select name="projectSetup" property="endUserId" styleClass="txfield" >
                           <html:option value="0">---Select <bean:message key="label.sales.endUser"/>---</html:option>
                           <html:options collection="endUserList" property="value" labelProperty="label"/>
                        </nested:select>
                  </TD>
                  <TD width="20%">&nbsp;</TD>
                  <TD width="30%">&nbsp;</TD>
                </TR>
                 <TR>
                  <TD width="20%"><FONT class=NArialL>Project Name:<FONT color="red">&nbsp;*</FONT></FONT></TD>
                  <TD width="30%"><nested:text property="projectName" styleClass="txfield" size="25" maxlength="50"/></TD>
                  <TD width="20%">&nbsp;<FONT class=NArialL>Project Status:</FONT></TD>
                  <TD width="30%"><nested:text property="projectStatus" styleClass="txfield" size="25" maxlength="50" /></TD>
                </TR>
                <% int bgcount = 0;%>
                <nested:iterate name="projectSetup" property="userDefinedFeilds" id="userDefinedField" >
                      <% bgcount = bgcount + 1; %>
                      <% if ( bgcount%2 > 0 ) { %>
                      <TR>
                      <% }%>
                      <TD width="20%" nowrap><% if ( bgcount%2 == 0 ) { %>&nbsp;<% }%><FONT class=NArialL><nested:write name="userDefinedField" property="name" />:</FONT></TD>
                      <TD width="30%" nowrap>
                            <logic:equal name="userDefinedField" property="type" value="list">
                                <nested:select name="userDefinedField" property="value" styleClass="txfield" >
                                    <html:option value="">   ---  Select  ---  </html:option>
                                    <nested:options property="listValues"/>
                                </nested:select>
                            </logic:equal>
                            <logic:equal name="userDefinedField" property="type" value="text">
                                <nested:text name="userDefinedField" property="value" styleClass="txfield" size="25" maxlength="50"/>
                            </logic:equal>
                            <logic:equal name="userDefinedField" property="type" value="date">
                                <nested:text name="userDefinedField" property="value" styleClass="txfield" size="25" maxlength="10"/>
                                <nested:hidden name="userDefinedField" property="type" />
                                <nested:hidden name="userDefinedField" property="name" />
                                <a href="javascript:openCalendar(document.projectSetupForm['projectSetup.userDefinedFeilds[<%=bgcount-1%>].value'] )"><img onMouseOver="window.status='Click here to select date';return true" border="0" align='center' src="<%=chipTracContext%>/jsp/includes/images/date_selector.gif" height=20 width=20 title="Click here to select date"></a>
                            </logic:equal>
                      </TD>
                      <% if ( bgcount%2 == 0 ) { %>
                      </TR>
                      <% } %>
                </nested:iterate>
                <script> m = '<%=bgcount%>'</script>

               <TR> <TD colspan="4">&nbsp;</TD> </TR>
                <TR>
                  <TD  colspan="2" class="NArialL"><A class="link" onmouseover="window.status='Click here to add new Fields';return true" onmouseout="window.status='';return true" href="javascript:userDefinedFields();" title="Click here to add new Fields">User Defined Fields</A></TD>
                  <TD width="20%">&nbsp;</TD>
                  <TD width="30%">&nbsp;</TD>
                </TR>
                </TBODY>
              </TABLE>
            </TD>
            </TR>
            <TR><td with="20%">&nbsp;</td><TD>&nbsp;</TD></TR>
            <TR><td with="20%">&nbsp;</td><TD>&nbsp;</TD></TR>
            <TR>
                <td with="20%">&nbsp;</td>
                <TD align="left">
                    <TABLE cellSpacing=0 cellPadding=0 width="90%" border="0" align="center">
                        <TBODY>
                        <TR>
                            <TD colspan="4" bgColor="#993333" width="621"  height="16">
                            <FONT class=NArialL><FONT color="#ffffff">&nbsp;Project-Part Relationships </FONT></FONT>
                            </TD>
                            <TD width="22%">&nbsp;</TD>
                        </TR>
                        <TR><TD>&nbsp;</TD> </TR>
                        <TR>
                          <TD width="18%"><FONT class=NArialL>Available Chips</FONT></TD>
                          <TD width="20%">&nbsp;</TD>
                          <TD width="1%">&nbsp;</TD>
                          <TD width="20%"><FONT class=NArialL>Selected Chips</FONT></TD>
                          <TD width="41%">
                          <nested:greaterThan property="projectID" value="0">
                            <FONT class=NArialL>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A class="link" onmouseover="window.status='Click here to map Part Numbers';return true" onmouseout="window.status='';return true" href="javascript:mapPartNumbers();" title="Click here to map Part Numbers">Map Part Numbers</a></FONT>
                          </nested:greaterThan>
                          </TD>
                        </TR>
                        <TR>
                          <TD>
                              <nested:select property="availableChips"  styleClass="emptyList" multiple="true" >
                                    <html:options collection="availableChipsList" property="value" labelProperty="label"/>
                              </nested:select>
                          </TD>
                          <TD align=middle>
                              <INPUT style="FONT-WEIGHT: bold" onclick="sendOptionElementLeftToRight( document.projectSetupForm['projectSetup.availableChips'], document.projectSetupForm['projectSetup.selectedChips'], document.projectSetupForm );" type=button value=">>" name=submita><BR><INPUT style="FONT-WEIGHT: bold" onclick="sendOptionElementRightToLeft(  document.projectSetupForm['projectSetup.availableChips'], document.projectSetupForm['projectSetup.selectedChips'], document.projectSetupForm );" type=button value="<<" name=submitb>
                          </TD>
                          <TD>&nbsp;</TD>
                          <TD>
                              <nested:select property="selectedChips"  styleClass="emptyList" multiple ="true">
                                    <html:options collection="selectedChipsList" property="value" labelProperty="label"/>
                              </nested:select> </TD>
                        </TR>
                        <TR>
                          <TD><FONT class=NArialL>Available Boards</FONT></TD>
                          <TD>&nbsp;</TD>
                          <TD>&nbsp;</TD>
                          <TD><FONT class=NArialL>Selected Boards</FONT></TD>
                        </TR>
                        <TR>
                          <TD>
                            <nested:select property="availableBoards"  styleClass="emptyList" multiple="true" >
                                    <html:options collection="availableBoardsList" property="value" labelProperty="label" />
                            </nested:select>
                          </TD>
                          <TD align=middle>
                                <INPUT style="FONT-WEIGHT: bold" onclick="sendOptionElementLeftToRight( document.projectSetupForm['projectSetup.availableBoards'], document.projectSetupForm['projectSetup.selectedBoards'], document.projectSetupForm );" type=button value=">>" name=submita><BR><INPUT style="FONT-WEIGHT: bold" onclick="sendOptionElementRightToLeft( document.projectSetupForm['projectSetup.availableBoards'], document.projectSetupForm['projectSetup.selectedBoards'],  document.projectSetupForm );" type=button value="<<" name=submitc>
                          </TD>
                          <TD>&nbsp;</TD>
                          <TD><nested:select property="selectedBoards"  styleClass="emptyList" multiple="true" >
                                    <html:options collection="selectedBoardsList"  property="value" labelProperty="label" />
                              </nested:select></TD>
                        </TR>
                        <TR>
                          <TD><FONT class=NArialL>Available Kits</FONT></TD>
                          <TD>&nbsp;</TD>
                          <TD>&nbsp;</TD>
                          <TD><FONT class=NArialL>Selected Kits</FONT></TD>
                        </TR>
                        <TR>
                          <TD>
                              <nested:select property="availableKits"  styleClass="emptyList" multiple="true" >
                                    <html:options collection="availableKitsList" property="value" labelProperty="label" />
                              </nested:select>
                          </TD>
                          <TD align=middle>
                            <INPUT style="FONT-WEIGHT: bold" onclick="sendOptionElementLeftToRight( document.projectSetupForm['projectSetup.availableKits'], document.projectSetupForm['projectSetup.selectedKits'],  document.projectSetupForm );" type=button value=">>" name=submita><BR><INPUT style="FONT-WEIGHT: bold" onclick="sendOptionElementRightToLeft( document.projectSetupForm['projectSetup.availableKits'], document.projectSetupForm['projectSetup.selectedKits'], document.projectSetupForm );" type=button value="<<" name=submitc>
                          </TD>
                          <TD>&nbsp;</TD>
                          <TD><nested:select property="selectedKits"  styleClass="emptyList" multiple="true" >
                                    <html:options collection="selectedKitsList" property="value" labelProperty="label" />
                              </nested:select>
                          </TD>
                        </TR>
                      </TBODY>
                    </TABLE>
               </TD>
            </TR>
            <TR><td with="20%">&nbsp;</td> <TD>&nbsp;</TD></TR>
            <TR><td with="20%">&nbsp;</td> <TD>&nbsp;</TD></TR>
            <TR>
                <td with="20%">&nbsp;</td>
                <TD>
                  <TABLE cellSpacing=0 cellPadding=0 width="80%" align=center border="0">
                    <TBODY>
                    <TR>
                      <TD align=middle>
                      <chiptrack:restrictedLink functionality='<%=Functionality.PROJECT_SETUP%>' action='<%=User.USER_ACTION_MODIFY%>' href="javascript:submitPage('SAVE');" onmouseover="window.status='Click here to Save Project Setup';return true" onmouseout="window.status='';return true">
                            <img border="0" src="<%=chipTracContext%>/jsp/includes/images/submit.gif" width="53" height="17"  onmouseover="window.status='Click here to Save Project Setup';return true" onmouseout="window.status='';return true" title="Click here to Save Project Setup" >
                      </chiptrack:restrictedLink>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                      <a href="javascript:resetForm();" ><IMG onmouseover="window.status='Click to Reset';return true" title="Click here to Reset" onmouseout="window.status='';return true" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" border=0></a>&nbsp;&nbsp;&nbsp;&nbsp;
                      </TD>
                    </TR>
                     <TR> <TD>&nbsp;</TD></TR>
                    </TBODY>
                    </TABLE>
                 </TD>
            </TR>
           </TBODY>
        </TABLE>
    <nested:hidden property="projectID"/>
    </nested:nest>
    <input type="hidden" name="action" value="">
    </html:form>
    </TD>
<!-- till here -->
    <TD bgcolor="#ffffff"><IMG height=1 src="images/spacer.gif" width=1></TD>
  </TR>
  </TBODY>
</TABLE>

<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</BODY>
</HTML>
